package com.wyh.lotterysystem.common.errorcode;

/**
 * Service层的状态信息
 */
public interface ServiceErrorCodeConstants {
    //用户
    ErrorCode REGISTER_INFO_IS_EMPTY = new ErrorCode(100, "注册信息为空");
    ErrorCode REGISTER_EMAIL_IS_MISTAKE = new ErrorCode(101,"邮箱格式错误");
    ErrorCode REGISTER_PHONE_IS_MISTAKE = new ErrorCode(102,"手机号格式错误");
    ErrorCode REGISTER_EMAIL_IS_USED = new ErrorCode(103,"邮箱已被使用");
    ErrorCode REGISTER_PHONE_IS_USED = new ErrorCode(104,"手机号已被使用");
    ErrorCode REGISTER_IDENTITY_MISTAKE = new ErrorCode(105,"身份信息错误");
    ErrorCode REGISTER_PASSWORD_MISTAKE = new ErrorCode(106,"密码格式错误");
    ErrorCode USER_NOT_EXIST = new ErrorCode(107,"用户不存在");
    ErrorCode LOGIN_PASSWORD_ERROR = new ErrorCode(108,"密码错误");
    ErrorCode LOGIN_EMAIL_ERROR = new ErrorCode(109,"邮箱错误");
    ErrorCode LOGIN_CODE_ERROR = new ErrorCode(110,"验证码错误");

    //奖品
    ErrorCode PIC_UPLOAD_ERROR = new ErrorCode(300,"图片下载失败");


    //活动
    ErrorCode ACTIVITY_CREATE_ERROR = new ErrorCode(600,"活动创建失败");
    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(601,"活动人员错误");
    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(602, "活动奖品错误");
    ErrorCode ACTIVITY_COUNT_ERROR = new ErrorCode(603,"奖品数不能大于人员数");
    ErrorCode ACTIVITY_PRIZE_TIER_ERROR = new ErrorCode(604,"奖品等级错误");
    ErrorCode DRAW_PRIZE_ERROR = new ErrorCode(605,"抽奖错误");

    ErrorCode REQUEST_IS_EMPTY = new ErrorCode(606,"消息为空");
    ErrorCode MESSAGE_ACTIVITY_IS_EMPTY = new ErrorCode(607,"活动不存在");
    ErrorCode MESSAGE_ACTIVITY_PRIZE_IS_EMPTY = new ErrorCode(608,"奖品不存在");
    ErrorCode MESSAGE_ACTIVITY_IS_EFFECTIVE = new ErrorCode(609,"活动已结束");
    ErrorCode MESSAGE_ACTIVITY_PRIZE_IS_EFFECTIVE = new ErrorCode(610,"奖品已被抽取");
    ErrorCode MESSAGE_ACTIVITY_PRIZE_COUNT_ERROR = new ErrorCode(611,"奖品与中奖人数错误");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR = new ErrorCode(612,"活动状态扭转失败");
    ErrorCode CACHE_ACTIVITY_ID_IS_EMPTY = new ErrorCode(613,"缓存活动id为空");
    ErrorCode CACHE_ACTIVITY_ID_ERROR = new ErrorCode(614, "缓存id有误");
    ErrorCode SHOW_RECORDS_EMPTY = new ErrorCode(615, "获取中奖记录的请求为空");
}
